﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X23.Application.Dto
{
    /// <summary>
    /// 导出验证
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class DtoExportAttribute : Attribute
    {
        /// <summary>
        /// 导出验证
        /// </summary>
        /// <param name="titleName">标题名称</param>
        /// <param name="width">宽度（多少个中文字符） 默认5个中文字符的宽度</param>
        public DtoExportAttribute(string titleName, int width = 5)
        {
            TitleName = titleName;
            Width = width;
        }
        /// <summary>
        /// 标题名称
        /// </summary>
        public string TitleName { get; set; }
        /// <summary>
        /// 宽度（多少个中文字符） 默认5个中文字符的宽度
        /// </summary>
        public int Width { get; set; }
    }
}
